package redteam.grabthegreen;

import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Paint.Style;

import com.google.android.maps.Overlay;
import com.google.android.maps.Point;

public class MapIcon extends Overlay {
    Paint paint1;
    Point point;

    public MapIcon(Point p) {
        point = p;
        paint1 = new Paint();
        paint1.setStyle(Style.FILL);
        paint1.setARGB(120,0,255,0);
    }

    public void draw(Canvas canvas, PixelCalculator pixelCalculator, boolean b) {
        super.draw(canvas, pixelCalculator, b);
        int[] screenCoords = new int[2];
        //pixelCalculator.getPointXY(point, screenCoords);
        canvas.drawCircle(point.getLatitudeE6(), point.getLongitudeE6(), 5, paint1);
        //canvas.drawText(Integer.toString(point.getLatitudeE6()) + Integer.toString(point.getLongitudeE6()), point.getLatitudeE6(), point.getLongitudeE6(), paint1);
    }
}